#ifndef _TURTLE_H_
#define _TURTLE_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "Game.h"
#include "Object.h"
//#include "Global.h"

#define TURTLE_VX	0.2


/**--------------------------------------------------------
*Program/Project : GameMario
*Written by : 
*Email :
*Created date : 7/10/2012
*Modified by :
*Modified date :
*Version : 1.0
*Description : Lop khoi tao Turtle
--------------------------------------------------------**/
class Turtle : public Object
{
public:
	/*Sprite* turtle_left;
	Sprite* turtle_right;
	Sprite* turtle_cur;*/

	bool check_turn;
	/*float _x1;
	float _y1;*/
	float _vx;
	float _vy;

	
public:
	//RECT _rectBond;

	Turtle(LPDIRECT3DDEVICE9 d3ddev, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y);
	~Turtle(void);
	void Render();
	void Update(int _ScreenWidth, int _ScreenHeight, int time);

	void TurnLeft();
	void TurnRight();

	void ResetRect();
	OBJECT_TYPE GetTypeObject();
};

#endif